package main

import (
	"bufio"
	"os"
	"strings"
	"sort"
	"fmt"
)

func main() {
	scanner := bufio.NewScanner(os.Stdin)

	var text []string
	for scanner.Scan() {
		text = strings.Split(scanner.Text(), " ")
		sort.Strings(text)
		fmt.Println(strings.Join(text, " "))
	}
}